package wxshop.api.user.model;


import wxshop.api.user.dto.Dto;

import java.io.Serializable;

/**
 * Created by yvdedu.com on 2018/1/22.
 */
public class Balances implements Serializable {
	//收支明细
	private int id;
	private int changes;//收支 +为收入  -为取消
	private int state;//.状态
	private String tint;//时间戳
	private int user_id;
	
	public Balances () {
	}
	
	public Balances (int state, int user_id) {
		this.state = state;
		this.user_id = user_id;
	}
	
	public Balances (int user_id) {
		this.user_id = user_id;
	}
	
	public Balances (int changes, int state, int user_id) {
		this.changes = changes;
		this.state = state;
		this.user_id = user_id;
	}
	
	
	public Balances (int changes, int state, String tint, int user_id) {
		this.changes = changes;
		this.state = state;
		this.tint = tint;
		this.user_id = user_id;
	}
	
	public int getId () {
		return id;
	}
	
	public void setId (int id) {
		this.id = id;
	}
	
	public int getChanges () {
		return changes;
	}
	
	public void setChanges (int changes) {
		this.changes = changes;
	}
	
	public int getState () {
		return state;
	}
	
	public void setState (int state) {
		this.state = state;
	}
	
	public int getUser_id () {
		return user_id;
	}
	
	public void setUser_id (int user_id) {
		this.user_id = user_id;
	}
	
	public String getTint () {
		return tint;
	}
	
	public String getTintStr () {
		return Dto.millisToString(tint);
	}
	
	public void setTint (String tint) {
		this.tint = tint;
	}
	
	@Override
	public String toString () {
		return "Balances{" +
				"id=" + id +
				", changes=" + changes +
				", state=" + state +
				", tint='" + tint + '\'' +
				", user_id=" + user_id +
				'}';
	}
}
